import numpy as np 
import matplotlib.pyplot as plt 

with open("build/dump.dat", "rb") as fid:
    data = fid.read()

spec1 = np.frombuffer(data, dtype=np.single, count=-1)
spec = np.reshape(spec1, newshape=(-1, 129))
print(spec.shape)

plt.figure()
plt.pcolormesh(spec.T)
plt.colorbar()
plt.show()


